Chart from Table
Link Table to Chart
Introduced in Version 3.3.0
- Add a Block ID (
^name
) to your Table:| | Test1 | Test2 | Test3 |
| ----- | ----- | ----- | ----- |
| Data1 | 1 | 2 | 3.33 |
| Data2 | 3 | 2 | 1 |
| Data3 | 6.7 | 4 | 2 |
^<blockId> - Add the same
id
to your Chart Codeblock```chart
type: bar
id: <blockId>
layout: rows
width: 80%
beginAtZero: true
``` - (If you want to link a Table from a different File, also include the Filename in the
file
attribute)```chart
type: bar
id: <blockId>
file: <Filename>
layout: rows
width: 80%
beginAtZero: true
``` - Choose the column or row oriented layout using the
layout
attribute. Options arerows
orcolumns
. - (Optional) Select the Columns or Rows with the
select
attribute. E.g. to only show RowData2
, addselect: [Data2]
Replace Table with Chart
You can select a whole Markdown-Table and run the Command "Create Chart from Table" to replace it with a Chart.